﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ToolsDownLoad.aspx.cs"
    Inherits="ITOMMS.Web.Tools.ToolsDownLoad" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>辅助工具下载</title>
    <link href="../css/AspNetPager.css" rel="stylesheet" type="text/css" />
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

</head>
<body>
    <form id="form1" runat="server">
        <table class="tblDataArea" width="100%">
            <tr class="tblQueryArea">
                <td class="tblDataCaption" colspan="5">
                    <div style="width: 210px;" class="title">
                        <img src="../images/lv3.gif" style="margin-bottom: -3px;" />辅助工具下载</div>
                </td>
            </tr>
            <tr>
                <td class="tdQueryCaption">
                    工具类别：</td>
                <td class="tdQueryField">
                    <asp:DropDownList ID="ddlType" runat="server" Width="155px">
                    </asp:DropDownList></td>
                <td class="tdQueryCaption">
                    工具名称：</td>
                <td class="tdQueryField">
                    <asp:TextBox ID="txtTitle" runat="server" Width="151px"></asp:TextBox>
                <td class="tdQueryField">
                    <asp:Button ID="btnQuery" runat="server" CssClass="cssUICommandButton" Text="查询"
                        OnClick="btnQuery_Click" /></td>
            </tr>
            <tr class="tblDataArea">
                <td colspan="5">
                    <asp:GridView ID="CMGridView1" runat="server" AutoGenerateColumns="False" CssClass="cssDataGrid"
                        Width="100%" OnRowDataBound="CMGridView1_RowDataBound" OnRowCommand="CMGridView1_RowCommand">
                        <FooterStyle CssClass="cssDataGridFooter"></FooterStyle>
                        <SelectedRowStyle CssClass="cssDataGridSelectedItem"></SelectedRowStyle>
                        <EditRowStyle CssClass="cssDataGridEditItem"></EditRowStyle>
                        <AlternatingRowStyle CssClass="cssDataGridAlternatingItem"></AlternatingRowStyle>
                        <RowStyle CssClass="cssDataGridItem"></RowStyle>
                        <HeaderStyle ForeColor="#CCFFFF" CssClass="cssDataGridHeader"></HeaderStyle>
                        <Columns>
                            <asp:BoundField DataField="SEQNO" HeaderText="序号" />
                            <asp:BoundField DataField="FileTitle" HeaderText="工具名称" />
                            <asp:BoundField DataField="ToolType" HeaderText="工具类型" />                         
                                
                            <asp:TemplateField HeaderText="下载">                              
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server"><a href='../UpLoadFiles/<%# Eval("NewFileName")%>' target="_blank"><img src="../images/icon_download_02.gif" alt="." style="margin-bottom:-5px"/>点击下载</a></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            
                            <asp:TemplateField  HeaderText="删除" >
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnDelete" runat="server" CommandName="del" OnClientClick="javascript:return confirm('你确认要删除吗?');" CommandArgument='<%# DataBinder.Eval(Container.DataItem,"ID")%>'>删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </asp:GridView>
                    <div id="AspNetPager">
                        <webdiyer:AspNetPager CssClass="paginator" CurrentPageButtonClass="cpb" ID="AspNetPager1"
                            runat="server" FirstPageText="首页" LastPageText="尾页" NextPageText="后页" PrevPageText="前页"
                            OnPageChanged="AspNetPager1_PageChanged" PageSize="25">
                        </webdiyer:AspNetPager>
                    </div>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>



